package com.richfit.cuba.modular.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * balance depot borrow month plan  油库借贷月计划
 * </p>
 *
 * @author Alan
 * @since 2019-03-27
 */
@TableName("BC_DEPOT_BORROW_MONTH_PLAN")
public class BcDepotBorrowMonthPlan extends Model<BcDepotBorrowMonthPlan> {

    private static final long serialVersionUID = 1L;

    /**
     * key
     */
    @TableId
    @TableField("ID")
    private String id;
    /**
     * depot id
     */
    @TableField("DEPOT_ID")
    private String depotId;
    /**
     * day
     */
    @TableField("DAY")
    private Date day;
    /**
     * oil key
     */
    @TableField("OIL_ID")
    private String oilId;
    /**
     * thrd key
     */
    @TableField("THRD_ID")
    private String thrdId;
    /**
     * quantity
     */
    @TableField("QUANTITY")
    private Double quantity;
    /**
     * 1 borrow 2 return 1借2还
     */
    @TableField("TYPE")
    private String type;
    
    /**
     * quantity
     */
    @TableField("END_STOCK")
    private Double endStock;

    @TableField("DEL_FLAG")
    private String delFlag;

    @TableField("CREATE_DATE")    
    private Date createDate;
    
    /**
     * *机构名称
     */
    @TableField(exist = false)
    private String orgName;
    

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDepotId() {
        return depotId;
    }

    public void setDepotId(String depotId) {
        this.depotId = depotId;
    }

    public Date getDay() {
        return day;
    }

    public void setDay(Date day) {
        this.day = day;
    }

    public String getOilId() {
        return oilId;
    }

    public void setOilId(String oilId) {
        this.oilId = oilId;
    }

    public String getThrdId() {
        return thrdId;
    }

    public void setThrdId(String thrdId) {
        this.thrdId = thrdId;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getEndStock() {
		return endStock;
	}

	public void setEndStock(Double endStock) {
		this.endStock = endStock;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "BcDepotBorrowMonthPlan{" +
        ", id=" + id +
        ", depotId=" + depotId +
        ", day=" + day +
        ", oilId=" + oilId +
        ", thrdId=" + thrdId +
        ", quantity=" + quantity +
        ", type=" + type +
        "}";
    }
}
